package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.MovieBean;
import com.project.bean.PageBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "movieServer",path = "/movie")
public interface IMoveService {
    @RequestMapping("cutByItem")
    public PageBean<MovieBean> cutByItem(@RequestParam("pageNO") Integer pageNO, @RequestParam("name") String name, @RequestParam("storeName") String storeName, @RequestParam("matches") String matches, @RequestParam("rowNum") String rowNum);

    @RequestMapping("buyMovie")
    public String buyMovie(@SpringQueryMap MovieBean movie);

    @RequestMapping("findById/{movieId}")
    public MovieBean findById(@PathVariable("movieId") Integer movieId);
}
